<?php
namespace Servidor\PostProcessor;

use Servidor\PostProcessor\AbstractPostProcessor;

class Xml extends AbstractPostProcessor {
    
    
    /**
     * (non-PHPdoc)
     * @see \Servidor\PostProcessor\AbstractPostProcessor::process()
     */
    public function process() {
        
        $result = $this->_serializer->serialize( $this->_vars, 'xml' );
        
        $this->_response->setContent( $result );
        
        $headers = $this->_response->getHeaders();
        $headers->addHeaderLine('Content-Type', 'application/xml');
        $this->_response->setHeaders( $headers );
    }
}